package io.renren.modules.shop.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.modules.shop.dao.CusMerchantDao;
import io.renren.modules.shop.entity.CustomerMerchantVO;
import io.renren.modules.shop.service.CusMerchantService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("CusmerchantService")
public class CusmerchantServiceImpl extends ServiceImpl<CusMerchantDao, CustomerMerchantVO> implements CusMerchantService{

    @Resource CusMerchantDao cusMerchantDao;
    @Override
    public CustomerMerchantVO getByPhone(Long phone) {
        CustomerMerchantVO customerMerchantVO = cusMerchantDao.getBy(phone);
        return customerMerchantVO;
    }

}
